<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="条形码" prop="barCode">
        <el-input v-model="queryParams.barCode" placeholder="请输入条形码" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="资产编号" prop="assetNo">
        <el-input v-model="queryParams.assetNo" placeholder="请输入资产编号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="类别" prop="sortCode">
        <el-select v-model="queryParams.sortCode" placeholder="请选择类别" clearable>
          <el-option v-for="dict in dict.type.em_sort_code" :key="dict.value" :label="dict.label"
            :value="dict.value"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="类型" prop="typeCode">
        <el-select v-model="queryParams.typeCode" placeholder="请选择类型" clearable>
          <el-option v-for="dict in dict.type.em_type_code" :key="dict.value" :label="dict.label"
            :value="dict.value"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="接线方式" prop="wiringMode">
        <el-select v-model="queryParams.wiringMode" placeholder="请选择接线方式" clearable>
          <el-option v-for="dict in dict.type.em_wiring_mode" :key="dict.value" :label="dict.label"
            :value="dict.value"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-table v-loading="loading" :data="mdMeterList" @selection-change="handleSelectionChange">
      <el-table-column label="电能表标识" align="center" prop="meterId" min-width="90px" />
      <el-table-column label="操作标识" align="center" prop="operId" v-if="false" />
      <el-table-column label="地区代码" align="center" prop="areaCode" />
      <el-table-column label="产权单位" align="center" prop="prOrg" />
      <el-table-column label="所在单位" align="center" prop="belongDept" />
      <el-table-column label="合同标识" align="center" prop="contractId" v-if="false" />
      <el-table-column label="接收标识" align="center" prop="rcvId" v-if="false" />
      <el-table-column label="条形码" align="center" prop="barCode" min-width="140px" />
      <el-table-column label="生产批次" align="center" prop="lotNo" />
      <el-table-column label="资产编号" align="center" prop="assetNo" min-width="140px" />
      <el-table-column label="出厂编号" align="center" prop="madeNo" />
      <el-table-column label="类别" align="center" prop="sortCode">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_sort_code" :value="scope.row.sortCode" />
        </template>
      </el-table-column>
      <el-table-column label="类型" align="center" prop="typeCode" min-width="155px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_type_code" :value="scope.row.typeCode" />
        </template>
      </el-table-column>
      <el-table-column label="型号" align="center" prop="modelCode" min-width="90px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_model_code" :value="scope.row.modelCode" />
        </template>
      </el-table-column>
      <el-table-column label="接线方式" align="center" prop="wiringMode">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_wiring_mode" :value="scope.row.wiringMode" />
        </template>
      </el-table-column>
      <el-table-column label="电压" align="center" prop="voltCode">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_volt_code" :value="scope.row.voltCode" />
        </template>
      </el-table-column>
      <el-table-column label="标定电流" align="center" prop="ratedCurrent" min-width="90px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_rated_current" :value="scope.row.ratedCurrent" />
        </template>
      </el-table-column>
      <el-table-column label="过载倍数" align="center" prop="overloadFactor">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_overload_factor" :value="scope.row.overloadFactor" />
        </template>
      </el-table-column>
      <el-table-column label="有功准确度等级" align="center" prop="apPreLevelCode" min-width="120px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_ap_pre_level_code" :value="scope.row.apPreLevelCode" />
        </template>
      </el-table-column>
      <el-table-column label="无功准确度等级" align="center" prop="rpPreLevelCode" min-width="120px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_rp_pre_level_code" :value="scope.row.rpPreLevelCode" />
        </template>
      </el-table-column>
      <el-table-column label="电能表位数" align="center" prop="meterDigits" min-width="90px" />
      <el-table-column label="分时位数" align="center" prop="tsDigits" />
      <el-table-column label="常数" align="center" prop="constCode">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_const_code" :value="scope.row.constCode" />
        </template>
      </el-table-column>
      <el-table-column label="无功常数" align="center" prop="rpConstant">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_rp_constant" :value="scope.row.rpConstant" />
        </template>
      </el-table-column>
      <el-table-column label="制造单位" align="center" prop="manufacturer" />
      <el-table-column label="出厂日期" align="center" prop="madeDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.madeDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="设备单价" align="center" prop="eqipPrc" />
      <el-table-column label="自身倍率" align="center" prop="selfFactor" />
      <el-table-column label="是否双向计量" align="center" prop="bothWayCalc" min-width="100px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_both_way_calc" :value="scope.row.bothWayCalc" />
        </template>
      </el-table-column>
      <el-table-column label="是否预付费" align="center" prop="prepayFlag" min-width="100px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_prepay_flag" :value="scope.row.prepayFlag" />
        </template>
      </el-table-column>
      <el-table-column label="复费率表标识" align="center" prop="multirateFalg" min-width="100px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_multirate_falg" :value="scope.row.multirateFalg" />
        </template>
      </el-table-column>
      <el-table-column label="需量表标识" align="center" prop="demandMeterFlag" min-width="100px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_demand_meter_flag" :value="scope.row.demandMeterFlag" />
        </template>
      </el-table-column>
      <el-table-column label="谐波计量标识" align="center" prop="harmonicMeasFalg" min-width="100px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_harmonic_meas_flag" :value="scope.row.harmonicMeasFalg" />
        </template>
      </el-table-column>
      <el-table-column label="是否阻逆" align="center" prop="ccPreventFlag">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_cc_prevent_flag" :value="scope.row.ccPreventFlag" />
        </template>
      </el-table-column>
      <el-table-column label="脉冲常数" align="center" prop="pulseConstantCode" />
      <el-table-column label="脉冲幅值" align="center" prop="pulseAmplitudeCode" />
      <el-table-column label="脉冲类别" align="center" prop="pulseSortCode" />
      <el-table-column label="频率" align="center" prop="freqCode" />
      <el-table-column label="接入方式" align="center" prop="conMode">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_con_mode" :value="scope.row.conMode" />
        </template>
      </el-table-column>
      <el-table-column label="指示数类型" align="center" prop="readingTypeCode" min-width="330px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_reading_type_code" :value="scope.row.readingTypeCode" />
        </template>
      </el-table-column>
      <el-table-column label="使用用途" align="center" prop="meterUsage">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_meter_usage" :value="scope.row.meterUsage" />
        </template>
      </el-table-column>
      <el-table-column label="测量原理" align="center" prop="measTheory" />
      <el-table-column label="轴承结构" align="center" prop="bearingStruc" />
      <el-table-column label="通讯接口" align="center" prop="ci" />
      <el-table-column label="继电器接点" align="center" prop="relayJoint" min-width="90px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_relay_joint" :value="scope.row.relayJoint" />
        </template>
      </el-table-column>
      <el-table-column label="电测量显示" align="center" prop="elecMeasDispFlag" min-width="90px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_elec_meas_disp_flag" :value="scope.row.elecMeasDispFlag" />
        </template>
      </el-table-column>
      <el-table-column label="失压判断" align="center" prop="vlFlag">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_vl_flag" :value="scope.row.vlFlag" />
        </template>
      </el-table-column>
      <el-table-column label="失流判断" align="center" prop="clFlag">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_cl_flag" :value="scope.row.clFlag" />
        </template>
      </el-table-column>
      <el-table-column label="逆相序判断" align="center" prop="antiPhaseFlag" min-width="90px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_anti_puase_flag" :value="scope.row.antiPhaseFlag" />
        </template>
      </el-table-column>
      <el-table-column label="超功率" align="center" prop="superPowerFlag">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_super_power_flag" :value="scope.row.superPowerFlag" />
        </template>
      </el-table-column>
      <el-table-column label="负荷曲线" align="center" prop="loadCurveFlag">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_load_curve_flag" :value="scope.row.loadCurveFlag" />
        </template>
      </el-table-column>
      <el-table-column label="停电抄表" align="center" prop="poweroffMrFlag">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_poweroff_mr_flag" :value="scope.row.poweroffMrFlag" />
        </template>
      </el-table-column>
      <el-table-column label="红外抄表" align="center" prop="infraredFlag">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_infrared_flag" :value="scope.row.infraredFlag" />
        </template>
      </el-table-column>
      <el-table-column label="建档类型" align="center" prop="docTypeCode">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_doc_type_code" :value="scope.row.docTypeCode" />
        </template>
      </el-table-column>
      <el-table-column label="最近检定日期" align="center" prop="latestChkDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.latestChkDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="装表日期" align="center" prop="instDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.instDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="拆表日期" align="center" prop="rmvDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.rmvDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="轮换周期" align="center" prop="rotateCycle" />
      <el-table-column label="报废原因" align="center" prop="discardReason" />
      <el-table-column label="报废日期" align="center" prop="descardDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.descardDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="产权" align="center" prop="prCode" />
      <el-table-column label="移交单位" align="center" prop="handoverDept" />
      <el-table-column label="移交日期" align="center" prop="handoverDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.handoverDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="当前状态" align="center" prop="curStatusCode" />
      <el-table-column label="是否借用" align="center" prop="borrowFlag">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_borrow_flag" :value="scope.row.borrowFlag" />
        </template>
      </el-table-column>
      <el-table-column label="新表标识" align="center" prop="newFlag">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_new_flag" :value="scope.row.newFlag" />
        </template>
      </el-table-column>
      <el-table-column label="物料号" align="center" prop="erpBatchNo" />
      <el-table-column label="备注" align="center" prop="remark" />
      <el-table-column label="库房标识" align="center" prop="whId" v-if="false" />
      <el-table-column label="库房名称" align="center" prop="whName" min-width="110px" />
      <el-table-column label="库区标识" align="center" prop="whAreaId" v-if="false" />
      <el-table-column label="库区名称" align="center" prop="whAreaname" />
      <el-table-column label="存放区标识" align="center" prop="storeAreaId" min-width="90px" v-if="false" />
      <el-table-column label="存放区名称" align="center" prop="storeAreaName" min-width="110px" />
      <el-table-column label="储位标识" align="center" prop="storeLocId" v-if="false" />
      <el-table-column label="储位名称" align="center" prop="storeLocName" />
      <el-table-column label="箱条形码" align="center" prop="boxBarCode" />
      <el-table-column label="建档人" align="center" prop="docCreatorNo" />
      <el-table-column label="建档日期" align="center" prop="docCreateDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.docCreateDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="波特率" align="center" prop="baudrateCode" />
      <el-table-column label="卡表跳闸方式" align="center" prop="meterCloseMode" min-width="100px" />
      <el-table-column label="计度器方式" align="center" prop="registerMode" min-width="90px" />
      <el-table-column label="显示方式" align="center" prop="dispMode" />
      <el-table-column label="硬件版本" align="center" prop="hardVer" />
      <el-table-column label="软件版本" align="center" prop="softVer" />
      <el-table-column label="通讯规约" align="center" prop="commProtCode" />
      <el-table-column label="附属设备类型" align="center" prop="attachequipTypeCode" min-width="100px" />
      <el-table-column label="附属设备分类" align="center" prop="attachequipSortCode" min-width="100px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_attachequip_sort_code" :value="scope.row.attachequipSortCode" />
        </template>
      </el-table-column>
      <el-table-column label="载波模块属性" align="center" prop="carrierWaveId" min-width="100px" />
      <el-table-column label="电能表通讯地址" align="center" prop="commAddr" min-width="120px" />
      <el-table-column label="载波芯片厂家" align="center" prop="chipManufacturer" min-width="100px" />
      <el-table-column label="载波芯片型号" align="center" prop="chipModelCode" min-width="100px" />
      <el-table-column label="费率类型" align="center" prop="tariffType">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_tariff_type" :value="scope.row.tariffType" />
        </template>
      </el-table-column>
      <el-table-column label="电能表规格" align="center" prop="specCode" min-width="90px" />
      <el-table-column label="电能表制造标准" align="center" prop="madeStandard" min-width="160px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_made_standard" :value="scope.row.madeStandard" />
        </template>
      </el-table-column>
      <el-table-column label="是否支持远程复电" align="center" prop="remotePowerOn" min-width="130px">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.em_remote_power_on" :value="scope.row.remotePowerOn" />
        </template>
      </el-table-column>
      <el-table-column label="电价标识ID" align="center" prop="extendElecCode" min-width="110px" v-if="false" />
      <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width" min-width="135px">
        <template slot-scope="scope">
          <el-button size="small" type="primary" @click="taskDetails(scope.row)">电能表详情</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
      @pagination="getList" />
    <el-dialog :title="title" :visible.sync="open" width="1300px">
      <el-form ref="form" :model="form" :rules="rules" label-width="130px">
        <el-row>
          <el-col :span="8">
            <el-form-item label="电能表标识" prop="meterId" v-if="false">
              <span>{{ form.meterId }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="操作标识" prop="operId" v-if="false">
              <el-input v-model="form.operId" />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="地区代码" prop="areaCode">
              <span>{{ form.areaCode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="费率类型" prop="rateTypes">
              <span>{{ rateTypes }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="是否支持远程复电" prop="telegram">
              <span>{{ telegram }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="产权单位" prop="prOrg">
              <span>{{ form.prOrg }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所在单位" prop="belongDept">
              <span>{{ form.belongDept }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="电能表规格" prop="specCode">
              <span>{{ form.specCode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="合同标识" prop="contractId" v-if="false">
              <span>{{ form.contractId }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="接收标识" prop="rcvId" v-if="false">
              <span>{{ form.rcvId }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="电能表制造标准" prop="standard">
              <span>{{ standard }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="条形码" prop="barCode">
              <span>{{ form.barCode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="生产批次" prop="lotNo">
              <span>{{ form.lotNo }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="资产编号" prop="assetNo">
              <span>{{ form.assetNo }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="出厂编号" prop="madeNo">
              <span>{{ form.madeNo }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="类别" prop="category">
              <span>{{ category }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="类型" prop="type">
              <span>{{ type }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="型号" prop="model">
              <span>{{ model }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="接线方式" prop="connection">
              <span>{{ connection }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="电压" prop="voltage">
              <span>{{ voltage }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="标定电流" prop="electric">
              <span>{{ electric }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="过载倍数" prop="overload">
              <span>{{ overload }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="有功准确度等级" prop="meritorious">
              <span>{{ meritorious }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="无功准确度等级" prop="idle">
              <span>{{ idle }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="电能表位数" prop="meterDigits">
              <span>{{ form.meterDigits }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="分时位数" prop="tsDigits">
              <span>{{ form.tsDigits }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="常数" prop="constant">
              <span>{{ constant }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="无功常数" prop="rconstant">
              <span>{{ rconstant }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="制造单位" prop="manufacturer">
              <span>{{ form.manufacturer }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="出厂日期" prop="madeDate">
              <span>{{ form.madeDate }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="设备单价" prop="eqipPrc">
              <span>{{ form.eqipPrc }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="自身倍率" prop="selfFactor">
              <span>{{ form.selfFactor }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="是否双向计量" prop="twoWay">
              <span>{{ twoWay }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="是否预付费" prop="payment">
              <span>{{ payment }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="复费率表标识" prop="multi">
              <span>{{ multi }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="需量表标识" prop="demand">
              <span>{{ demand }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="谐波计量标识" prop="harmonic">
             <span>{{ harmonic }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="是否阻逆" prop="counterseal">
             <span>{{ counterseal }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="脉冲常数" prop="pulseConstantCode">
              <span>{{ form.pulseConstantCode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="脉冲幅值" prop="pulseAmplitudeCode">
              <span>{{ form.pulseAmplitudeCode }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="脉冲类别" prop="pulseSortCode">
              <span>{{ form.pulseSortCode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="频率" prop="freqCode">
              <span>{{ form.freqCode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="接入方式" prop="access">
              <span>{{ access }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="指示数类型" prop="Indicator">
              <span>{{ Indicator }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="使用用途" prop="usage">
              <span>{{ usage }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="测量原理" prop="measTheory">
              <span>{{ form.measTheory }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="轴承结构" prop="bearingStruc">
              <span>{{ form.bearingStruc }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="通讯接口" prop="ci">
              <span>{{ form.ci }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="继电器接点" prop="contact">
              <span>{{ contact }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="电测量显示" prop="display">
              <span>{{ display }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="失压判断" prop="decompression">
              <span>{{ decompression }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="失流判断" prop="defluidization">
              <span>{{ defluidization }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="逆相序判断" prop="sequence">
              <span>{{ sequence }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="超功率" prop="superPowerFlag">
              <span>{{ overpower }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="负荷曲线" prop="curve">
              <span>{{ curve }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="停电抄表" prop="power">
              <span>{{ power }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="红外抄表" prop="infrared">
              <span>{{ infrared }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="建档类型" prop="breed">
              <span>{{ breed }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="最近检定日期" prop="latestChkDate">
              <span>{{ form.latestChkDate }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="装表日期" prop="instDate">
              <span>{{ form.instDate }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="拆表日期" prop="rmvDate">
              <span>{{ form.rmvDate }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="轮换周期" prop="rotateCycle">
              <span>{{ form.rotateCycle }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="报废原因" prop="discardReason">
              <span>{{ form.discardReason }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="报废日期" prop="descardDate">
              <span>{{ form.descardDate }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="产权" prop="prCode">
              <span>{{ form.prCode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="移交单位" prop="handoverDept">
              <span>{{ form.handoverDept }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="移交日期" prop="handoverDate">
              <span>{{ form.handoverDate }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="当前状态" prop="curStatusCode">
              <span>{{ form.curStatusCode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="是否借用" prop="borrow">
              <span>{{ borrow }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="新表标识" prop="identifying ">
              <span>{{ identifying  }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="物料号" prop="erpBatchNo">
              <span>{{ form.erpBatchNo }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="库房名称" prop="whName">
              <span>{{ form.whName }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="库区名称" prop="whAreaname">
              <span>{{ form.whAreaname }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="存放区名称" prop="storeAreaName">
              <span>{{ form.storeAreaName }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="储位名称" prop="storeLocName">
              <span>{{ form.storeLocName }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="箱条形码" prop="boxBarCode">
              <span>{{ form.boxBarCode }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="建档人" prop="docCreatorNo">
              <span>{{ form.docCreatorNo }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="建档日期" prop="docCreateDate">
              <span>{{ form.docCreateDate }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="波特率" prop="baudrateCode">
              <span>{{ form.baudrateCode }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="卡表跳闸方式" prop="meterCloseMode">
              <span>{{ form.meterCloseMode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="计度器方式" prop="registerMode">
              <span>{{ form.registerMode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="显示方式" prop="dispMode">
              <span>{{ form.dispMode }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="硬件版本" prop="hardVer">
              <span>{{ form.hardVer }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="软件版本" prop="softVer">
              <span>{{ form.softVer }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="通讯规约" prop="commProtCode">
              <span>{{ form.commProtCode }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="附属设备类型" prop="attachequipTypeCode">
              <span>{{ form.attachequipTypeCode }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="附属设备分类" prop="accessory">
              <span>{{ accessory }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="载波模块属性" prop="carrierWaveId">
              <span>{{ form.carrierWaveId }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="电能表通讯地址" prop="commAddr">
              <span>{{ form.commAddr }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="载波芯片厂家" prop="chipManufacturer">
              <span>{{ form.chipManufacturer }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="载波芯片型号" prop="chipModelCode">
              <span>{{ form.chipModelCode }}</span>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="电价标识ID" prop="extendElecCode" v-if="false">
              <el-input v-model="form.extendElecCode" />
            </el-form-item>
          </el-col>
          <el-col :span="16">
            <el-form-item label="备注" prop="remark">
              <span>{{ form.remark }}</span>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="cancel">返 回</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listMdMeter, getMdMeter } from "@/api/storage/mdMeter";

export default {
  name: "MdMeter",
  dicts: ["em_sort_code", "em_type_code", "em_model_code", "em_wiring_mode", "em_volt_code", "em_rated_current",
    "em_overload_factor", "em_ap_pre_level_code", "em_rp_pre_level_code", "em_const_code", "em_rp_constant", "em_both_way_calc",
    "em_prepay_flag", "em_multirate_falg", "em_demand_meter_flag", "em_harmonic_meas_flag", "em_cc_prevent_flag", "em_con_mode",
    "em_reading_type_code", "em_meter_usage", "em_relay_joint", "em_elec_meas_disp_flag", "em_vl_flag", "em_cl_flag", "em_anti_puase_flag",
    "em_super_power_flag", "em_load_curve_flag", "em_poweroff_mr_flag", "em_infrared_flag", "em_doc_type_code", "em_borrow_flag",
    "em_new_flag", "em_attachequip_sort_code", "em_tariff_type", "em_made_standard", "em_remote_power_on"],
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 电能资产信息表格数据
      mdMeterList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        barCode: null,
        assetNo: null,
        sortCode: null,
        typeCode: null,
        wiringMode: null,
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      },
      //电能表详情
      energyMeterDetails: [],
      category: "",
      type: "",
      model: "", 
      connection: "",
      voltage: "",
      electric: "",
      overload: "",
      meritorious: "",
      idle: "",
      constant: "",
      rconstant: "",
      twoWay: "",
      payment: "",
      multi: "",
      demand: "",
      harmonic: "",
      counterseal: "",
      access: "",
      Indicator: "",
      usage: "",
      contact: "",
      display: "",
      decompression: "",
      defluidization: "",
      sequence: "",
      overpower: "",
      curve: "",
      power: "",
      infrared: "",
      breed: "",
      borrow: "",
      identifying:"",
      accessory: "",
      rateTypes: "",
      standard: "",
      telegram: ""
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询电能资产信息列表 */
    getList() {
      this.loading = true;
      listMdMeter(this.queryParams).then(response => {
        console.log(response)
        this.mdMeterList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        meterId: null,
        operId: null,
        areaCode: null,
        prOrg: null,
        belongDept: null,
        contractId: null,
        rcvId: null,
        barCode: null,
        lotNo: null,
        assetNo: null,
        madeNo: null,
        sortCode: null,
        typeCode: null,
        modelCode: null,
        wiringMode: null,
        voltCode: null,
        ratedCurrent: null,
        overloadFactor: null,
        apPreLevelCode: null,
        rpPreLevelCode: null,
        meterDigits: null,
        tsDigits: null,
        constCode: null,
        rpConstant: null,
        manufacturer: null,
        madeDate: null,
        eqipPrc: null,
        selfFactor: null,
        bothWayCalc: null,
        prepayFlag: null,
        multirateFalg: null,
        demandMeterFlag: null,
        harmonicMeasFalg: null,
        ccPreventFlag: null,
        pulseConstantCode: null,
        pulseAmplitudeCode: null,
        pulseSortCode: null,
        freqCode: null,
        conMode: null,
        readingTypeCode: null,
        meterUsage: null,
        measTheory: null,
        bearingStruc: null,
        ci: null,
        relayJoint: null,
        elecMeasDispFlag: null,
        vlFlag: null,
        clFlag: null,
        antiPhaseFlag: null,
        superPowerFlag: null,
        loadCurveFlag: null,
        poweroffMrFlag: null,
        infraredFlag: null,
        docTypeCode: null,
        latestChkDate: null,
        instDate: null,
        rmvDate: null,
        rotateCycle: null,
        discardReason: null,
        descardDate: null,
        prCode: null,
        handoverDept: null,
        handoverDate: null,
        curStatusCode: null,
        borrowFlag: null,
        newFlag: null,
        erpBatchNo: null,
        remark: null,
        whId: null,
        whAreaId: null,
        storeAreaId: null,
        storeLocId: null,
        boxBarCode: null,
        docCreatorNo: null,
        docCreateDate: null,
        baudrateCode: null,
        meterCloseMode: null,
        registerMode: null,
        dispMode: null,
        hardVer: null,
        softVer: null,
        commProtCode: null,
        attachequipTypeCode: null,
        attachequipSortCode: null,
        carrierWaveId: null,
        commAddr: null,
        chipManufacturer: null,
        chipModelCode: null,
        tariffType: null,
        specCode: null,
        madeStandard: null,
        remotePowerOn: null,
        extendElecCode: null,
        whName: null,
        whAreaname: null,
        storeAreaName: null,
        storeLocName: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.meterId)
      this.single = selection.length !== 1
      this.multiple = !selection.length
    },
    /** 电能表详情 */
    taskDetails(row) {
      this.reset()
      const meterId = row.meterId
      getMdMeter(meterId).then(response => {
        this.form = response.data
        console.log(response)
        this.open = true
        this.title = "电能表详情"
        //
        if(this.form.sortCode == "01"){
          this.category = "有功表"
        }else if(this.form.sortCode == "02"){
          this.category = "无功表"
        }else if(this.form.sortCode == "03"){
          this.category = "多功能表"
        }else if(this.form.sortCode == "10"){
          this.category = "智能表"
        }
        //
        if(this.form.typeCode == "28"){
          this.type = "电子式-智能远程费控"
        }else if(this.form.typeCode == "29"){
          this.type = "电子式-智能无费控"
        }
        //
        if(this.form.modelCode == "001"){
          this.model = "DD862-4"
        }else if(this.form.modelCode == "002"){
          this.model = "DTSD532"
        }else if(this.form.modelCode == "003"){
          this.model = "DD204-4"
        }else if(this.form.modelCode == "004"){
          this.model = "DTS532"
        }else if(this.form.modelCode == "005"){
          this.model = "DTS532(2)"
        }
        //
        if(this.form.wiringMode == "1"){
          this.connection = "单相"
        }else if(this.form.wiringMode == "2"){
          this.connection = "三相三线"
        }else if(this.form.wiringMode == "3"){
          this.connection = "三相四线"
        }
        //
        if(this.form.voltCode == "01"){
          this.voltage = "220V"
        }else if(this.form.voltCode == "02"){
          this.voltage = "3x380V"
        }else if(this.form.voltCode == "03"){
          this.voltage = "3x380/220V"
        }else if(this.form.voltCode == "04"){
          this.voltage = "3x100V"
        }else if(this.form.voltCode == "05"){
          this.voltage = "3x57.7/100V"
        }
        //
        if(this.form.ratedCurrent == "00200"){
          this.electric = "5(60)A"
        }else if(this.form.ratedCurrent == "00248"){
          this.electric = "3×1.5(6)A"
        }else if(this.form.ratedCurrent == "00300"){
          this.electric = "2(40)A"
        }else if(this.form.ratedCurrent == "9990043"){
          this.electric = "3x5(60)A"
        }
        //
        if(this.form.overloadFactor == "01"){
          this.overload = "1"
        }else if(this.form.overloadFactor == "02"){
          this.overload = "1.2"
        }else if(this.form.overloadFactor == "03"){
          this.overload = "1.5"
        }else if(this.form.overloadFactor == "04"){
          this.overload = "2"
        }else if(this.form.overloadFactor == "05"){
          this.overload = "2.5"
        }
        //
        if(this.form.apPreLevelCode == "01"){
          this.meritorious = "1.0"
        }else if(this.form.apPreLevelCode == "02"){
          this.meritorious = "2.0"
        }else if(this.form.apPreLevelCode == "03"){
          this.meritorious = "3.0"
        }
        //
        if(this.form.rpPreLevelCode == "01"){
          this.idle = "1.0"
        }else if(this.form.rpPreLevelCode == "02"){
          this.idle = "2.0"
        }else if(this.form.rpPreLevelCode == "03"){
          this.idle = "3.0"
        }
        //
        if(this.form.constCode == "01"){
          this.constant = "30"
        }else if(this.form.constCode == "02"){
          this.constant = "40"
        }else if(this.form.constCode == "03"){
          this.constant = "50"
        }else if(this.form.constCode == "04"){
          this.constant = "60"
        }else if(this.form.constCode == "05"){
          this.constant = "80"
        }else if(this.form.constCode == "06"){
          this.constant = "100"
        }
        //
        if(this.form.rpConstant == "01"){
          this.rconstant = "30"
        }else if(this.form.rpConstant == "02"){
          this.rconstant = "40"
        }else if(this.form.rpConstant == "03"){
          this.rconstant = "50"
        }else if(this.form.rpConstant == "04"){
          this.rconstant = "60"
        }else if(this.form.rpConstant == "05"){
          this.rconstant = "80"
        }else if(this.form.rpConstant == "06"){
          this.rconstant = "100"
        }
        //
        if(this.form.bothWayCalc == "01"){
          this.twoWay = "是"
        }else if(this.form.bothWayCalc == "02"){
          this.twoWay = "否"
        }
        //
        if(this.form.prepayFlag == "01"){
          this.payment = "是"
        }else if(this.form.prepayFlag == "02"){
          this.payment = "否"
        }
        //
        if(this.form.multirateFalg == "01"){
          this.multi = "是"
        }else if(this.form.multirateFalg == "02"){
          this.multi = "否"
        }
        //
        if(this.form.demandMeterFlag == "01"){
          this.demand = "是"
        }else if(this.form.demandMeterFlag == "02"){
          this.demand = "否"
        }
        //
        if(this.form.harmonicMeasFalg == "01"){
          this.harmonic = "是"
        }else if(this.form.harmonicMeasFalg == "02"){
          this.harmonic = "否"
        }
        //
        if(this.form.ccPreventFlag == "01"){
          this.counterseal = "是"
        }else if(this.form.ccPreventFlag == "02"){
          this.counterseal = "否"
        }
        //
        if(this.form.conMode == "01"){
          this.access = "直接接入"
        }else if(this.form.conMode == "02"){
          this.access = "经互感器接入"
        }
        //
        if(this.form.readingTypeCode == "A"){
          this.Indicator = "最大需量+正向有功及分时+反向有功及分时+无功四象限"
        }else if(this.form.readingTypeCode == "B"){
          this.Indicator = "最大需量+正向有功及分时+无功感容"
        }else if(this.form.readingTypeCode == "C"){
          this.Indicator = "正向有功及分时+无功感容"
        }else if(this.form.readingTypeCode == "D"){
          this.Indicator = "正向有功及分时"
        }else if(this.form.readingTypeCode == "E"){
          this.Indicator = "正向有功+无功感容"
        }else if(this.form.readingTypeCode == "F"){
          this.Indicator = "有功"
        }else if(this.form.readingTypeCode == "G"){
          this.Indicator = "无功"
        }
        //
        if(this.form.meterUsage == "01"){
          this.usage = "GPRS"
        }else if(this.form.meterUsage == "02"){
          this.usage = "GSM"
        }else if(this.form.meterUsage == "03"){
          this.usage = "网络表"
        }else if(this.form.meterUsage == "04"){
          this.usage = "数据采集表"
        }
        //
        if(this.form.relayJoint == "01"){
          this.contact = "常开"
        }else if(this.form.relayJoint == "02"){
          this.contact = "常闭"
        }else if(this.form.relayJoint == "03"){
          this.contact = "常开+常闭"
        }
        //
        if(this.form.elecMeasDispFlag == "01"){
          this.display = "显示"
        }else if(this.form.elecMeasDispFlag == "02"){
          this.display = "不显示"
        }
        //
        if(this.form.vlFlag == "01"){
          this.decompression = "有"
        }else if(this.form.vlFlag == "02"){
          this.decompression = "无"
        }
        //
        if(this.form.clFlag == "01"){
          this.defluidization = "有"
        }else if(this.form.clFlag == "02"){
          this.defluidization = "无"
        }
        //
        if(this.form.antiPhaseFlag == "01"){
          this.sequence = "有"
        }else if(this.form.antiPhaseFlag == "02"){
          this.sequence = "无"
        }
        //
        if(this.form.superPowerFlag == "01"){
          this.overpower = "有"
        }else if(this.form.superPowerFlag == "02"){
          this.overpower = "无"
        }
        //
        if(this.form.loadCurveFlag == "01"){
          this.curve = "有"
        }else if(this.form.loadCurveFlag == "02"){
          this.curve = "无"
        }
        //
        if(this.form.poweroffMrFlag == "01"){
          this.power = "有"
        }else if(this.form.poweroffMrFlag == "02"){
          this.power = "无"
        }
        //
        if(this.form.infraredFlag == "01"){
          this.infrared = "有"
        }else if(this.form.infraredFlag == "02"){
          this.infrared = "无"
        }
        //
        if(this.form.docTypeCode == "01"){
          this.breed = "转接"
        }else if(this.form.docTypeCode == "02"){
          this.breed = "正常"
        }else if(this.form.docTypeCode == "03"){
          this.breed = "维护"
        }
        //
        if(this.form.borrowFlag == "01"){
          this.borrow = "是"
        }else if(this.form.borrowFlag == "02"){
          this.borrow = "否"
        }
        //
        if(this.form.newFlag == "01"){
          this.identifying = "是"
        }else if(this.form.newFlag == "02"){
          this.identifying = "否"
        }
        //
        if(this.form.attachequipSortCode == "0"){
          this.accessory = "普通电能表"
        }else if(this.form.attachequipSortCode == "1"){
          this.accessory = "附属设备（带有交采功能的采集终端）"
        }else if(this.form.attachequipSortCode == "2"){
          this.accessory = "主设备（带有远程通讯功能的电能表）"
        }
        //
        if(this.form.tariffType == "01"){
          this.rateTypes = "单费率"
        }else if(this.form.tariffType == "02"){
          this.rateTypes = "二费率"
        }else if(this.form.tariffType == "03"){
          this.rateTypes = "四费率1型"
        }else if(this.form.tariffType == "04"){
          this.rateTypes = "四费率2型"
        }else if(this.form.tariffType == "05"){
          this.rateTypes = "三费率"
        }else if(this.form.tariffType == "06"){
          this.rateTypes = "二费率2型"
        }else if(this.form.tariffType == "99"){
          this.rateTypes = "其它"
        }
        //
        if(this.form.madeStandard == "01"){
          this.standard = "GB/T17215.211-2006"
        }else if(this.form.madeStandard == "02"){
          this.standard = "GB/T17215.321-2008"
        }else if(this.form.madeStandard == "03"){
          this.standard = "GB/T17215.322-2008"
        }else if(this.form.madeStandard == "04"){
          this.standard = "GB/T17215.323-2008"
        }else if(this.form.madeStandard == "05"){
          this.standard = "GB/T17215.301-2007"
        }else if(this.form.madeStandard == "06"){
          this.standard = "Q/GDW364-2013"
        }else if(this.form.madeStandard == "07"){
          this.standard = "Q/GDW364-2009"
        }
        //
        if(this.form.remotePowerOn == "01"){
          this.telegram = "是"
        }else if(this.form.remotePowerOn == "02"){
          this.telegram = "否"
        }
      })
    },
  }
};
</script>